package by.dvrudenko.avtobaza.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.dvrudenko.avtobaza.datamodel.Driver;



public interface DriverDao extends AbstractDao<Long, Driver>{
	
	Long getCount();

	List<Driver> getAllDriver();
	
//	List<Driver> getAllDriver(Boolean work);
	
	List<Driver> getAllDriver(SingularAttribute<Driver, ?> attr, boolean ascending, int startRecord, int pageSize);
	
//	List<Driver> getAllDriverByExperience(Integer experience);

//	List<Driver> getAllDriverBy....(... ....);
	
	Driver getDriverByUserId(Long id);

}
